package com.fast.mybatis.exception;

public abstract class AbstractRuntimeException extends RuntimeException {

	private static final long serialVersionUID = 7775777449658940109L;

	private String code;

	protected AbstractRuntimeException() {

	}

	public AbstractRuntimeException(String code, String message, Throwable ex) {
		super(message, ex);
		this.code = code;
	}
	
	public AbstractRuntimeException(String message) {
		super(message);
	}

	public AbstractRuntimeException(String code, String message) {
		super(message);
		this.code = code;
	}
	
	public AbstractRuntimeException(String message,Throwable ex) {
		super(message, ex);
	}

	public AbstractRuntimeException(Throwable ex) {
		super(ex);
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}